package com.lipaluma.annotations.validations;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.lipaluma.field.validator.Validator;
import com.lipaluma.field.validator.strategies.LengthStrategy;

@Documented
@Inherited
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface ValidateCollection {
	Class<? extends Validator>[] customs() default {};
	
	boolean notEmpty() default false;
	
	int length() default -1;

	LengthStrategy lengthStrategy() default LengthStrategy.EQUALS;
}
